

#ifndef _COMMON_SYS_DESCRIPTOR_H_
#define _COMMON_SYS_DESCRIPTOR_H_

namespace tty {
	namespace common {
        namespace sys {

enum class e_rw : int {
	  read_fd       = 1
	, write_fd      = 2
	, read_write_fd = 3
};

bool get_descriptor_status(int fd, int sec, int nsec, e_rw desc, int ntimes = 1);


}}}  // namespace tty::common::sys

#endif // _COMMON_SYS_DESCRIPTOR_H_